package co.baiku.boot.live.baijiayun.message;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 百家云返回通用结果封装
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class BaiJiaLiveApiMessage<T> {
    /**
     * 错误码，对应的错误原因参见错误码表
     */
    private Integer code;
    /**
     * 错误原因描述
     */
    private String msg;
    /**
     * 返回的数据，出错时返回的data为null
     */
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
